﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddDownload.aspx.cs" Inherits="sysadmin_DownManager_AddDownload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加下载信息</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript">
    function openUploadFile(DownloadID)
    {
      window.location="uploadFile.aspx?DownloadID="+DownloadID ;
    }
    </script>
</head>
<body class="bodymain">
    <form id="form1" runat="server" >
        <table width="100%" border="0"  cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lbl_InfoTitle_AddDownload" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr><td colspan="4" class=" titlefont">
                 <asp:Label ID="lbl_DownloadUploadInfo" runat="server" Text=""></asp:Label></td></tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_DownloadFileUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txt_DownUrl" runat="server" Width="360px"></asp:TextBox><a href="#" onclick="openUploadFile(<%=DownloadID.ToString() %>)"><%=GetLanageValueByKey("lab_AddDownload_UploadFile", PowerCreator.LMS.Language.LanagetItemType.Page)%></a>
                    <asp:RequiredFieldValidator ID="rfv_txt_DownUrl" runat="server" ErrorMessage="*" ControlToValidate="txt_DownUrl"></asp:RequiredFieldValidator></td>
            </tr>
        <tr><td colspan="4" class=" titlefont"> 
            <asp:Label ID="lbl_DownloadBaseInfo" runat="server" Text=""></asp:Label></td></tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_DownloadName" runat="server" Text=""></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_DownName" runat="server" Width="360px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_DownName" runat="server" ErrorMessage="*"
                        ControlToValidate="txt_DownName"></asp:RequiredFieldValidator>
                    <asp:Label ID="lbl_AddDownload_msg_txt_DownName" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_FKDownDownTypeID" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_FKDownDownTypeID" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_DownEdition" runat="server" Text=""></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_DownEdition" runat="server" Width="360px"></asp:TextBox>
                    <asp:Label ID="lbl_AddDownload_msg_DownEdition" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th valign="top">
                    <asp:Label ID="lbl_DownDescription" runat="server" Text=""></asp:Label>
                </th>
                 <td colspan="3"><asp:TextBox ID="txt_DownDescription" runat="server" Height="93px" Width="396px" TextMode="MultiLine"></asp:TextBox>
                     &nbsp;</td>
           </tr>           
            <tr>
                <th style="height: 32px">
                    <asp:Label ID="lbl_DownState" runat="server" Text=""></asp:Label></th>
                <td colspan="3" style="height: 32px">
                    <asp:CheckBox ID="cb_DownState" runat="server" />公开
                </td>
            </tr>
            
<%--            
            <tr>
                <th>
                    <asp:Label ID="lbl_DownloadPictureUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <radU:RadProgressManager ID="Radprogressmanager2" Width="100%" runat="server" />
                    <radU:RadProgressArea ID="progressArea2" Width="100%" runat="server">
                    </radU:RadProgressArea>
                    <br />
                    <asp:FileUpload ID="FileUpload2" runat="server" Width="80%"  />
                    <asp:Label ID="lbl_DownloadPictureUrl_intro" runat="server" Text=""></asp:Label>
                    </td>
            </tr> 
            
--%>                 
            <tr>
                <td colspan="4" class="tree-bottom-bg">
                    <asp:Button ID="btnSave" runat="server" Text="" CssClass="inputBotton2" OnClick="btnSave_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnReset" runat="server" Text="" CssClass="inputBotton2" OnClick="btnReset_Click" CausesValidation="False" /></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
               <td colspan="3">
                    &nbsp;&nbsp;<asp:Label ID="lbl_msg_Error" runat="server" Text="" ForeColor="red"></asp:Label>

            </tr>
        </table>
    </form>
</body>
</html>
